package com.yonyou.pmclouds.organization.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.organization.entity.OrganizationVO;


/**
 * 组织
 */
public interface OrganizationQuery {
    OrganizationVO[] queryOrgList(String pkTenant, String pkRole) throws BusinessException;

    OrganizationVO queryByPkSrc(String pkTenant, String pkSrc) throws BusinessException;

    OrganizationVO[] queryOrgListByTenantId(String pkTenant) throws BusinessException;

    OrganizationVO[] queryOrgListByTenantWithKeyword(String pkTenant, String keyword);

    OrganizationVO[] queryByPkSrcs(String pkTenant, String[] pkSrcs) throws BusinessException;

    OrganizationVO[] queryOrgByRoles(String pkTenant, String[] pkRoles) throws BusinessException;

    String[] queryOrgIdsByRoles(String pkTenant, String[] pkRoles) throws BusinessException;

    OrganizationVO queryById(String id) throws BusinessException;

    OrganizationVO[] queryByIds(String[] ids) throws BusinessException;

}
